<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>订单详情-</title>
<link rel="stylesheet" type="text/css" href="css/css.css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/calendar/WdatePicker.js"></script>
<style>
	td{border:0px}
	.bor {
    border: 0px solid #ccc;
}
</style>
</head>
<body>
	<div id="pageAll">
		<div class="pageTop">
			<div class="page">
				<img src="img/coin02.png" />
				<span><a href="
				main.do">首页</a>&nbsp;-&nbsp;<a href="getAllOrders.do">订单管理</a>&nbsp;-&nbsp;订单编辑</span>
			</div>
		</div>
		<div class="page ">
			<!-- 上传广告页面样式 -->
			<div class="banneradd bor">
				<form action="updateOrder.do" id="orderform" method="post">
				<div class="baTopNo">
					<span>订单基本信息</span>
					<hr/>
				</div>
				<div class="baBody" >
					<table >	
						<tr class="bbD"  >
							<td class="td">产品名称：</td>
							<td ><input type="text" class="input3" id="oname" readonly="readonly" name="name"  value="${map.name}"/></td>
							<td><span id="checkName"></span></td>
							<td><input type="hidden" name="id" id="id" value="${map.id }" /></td>				
						</tr>
						<tr class="bbD">
							<td class="td">合同名称：</td>
							<td> <input type="text" id="contractName" readonly="readonly" onblur="checkContract()" class="input3" value="${map.contractName }"/> </td>
							<td> <span id="tip"></span></td>
							<td><input type="hidden" name="coid" id="coid" value="${map.coid}"></input></td>
						</tr>
						<tr class="bbD">
							<td class="td">机构名称：</td>
							<td><input type="text" readonly="readonly"  id="orgname" class="input3" value="${map.orgname }"/></td>
							
							<td><input type="hidden" name="oid" id="oid" value="${map.oid }"></input></td>
						</tr>
						<tr class="bbD" >
							<td class="td">产品类别：&nbsp;</td>
							<td>
								
								<input type="checkbox" onclick="return false;" name="checkbox" ${(map.apro eq 1 && map.bpro eq 1 &&map.cpro eq 1)?"checked":"" } id="allcheck"/>全部&nbsp;
								<input type="checkbox" onclick="return false;" name="checkbox" ${map.apro eq 1?"checked":"" } id="apro" />网站专区&nbsp;
								<input type="checkbox" onclick="return false;" name="checkbox" ${map.bpro eq 1?"checked":"" } id="bpro"/>手机APP&nbsp;
								<input type="checkbox" onclick="return false;" name="checkbox" ${map.cpro eq 1?"checked":"" } id="cpro"/>微刊&nbsp;
							</td>
						</tr>
						
						<tr class="bbD">
							<td class="td">经办人：</td>
							<td><input type="text" readonly="readonly"  id="ename" class="input3" value="${map.ename }"/></td>
						</tr>
						<tr class="bbD">
							<td class="td">联系人：</td>
							<td><input type="text" readonly="readonly"  id="cname" class="input3" value="${map.cname }"/></td>
						</tr>
						<tr class="bbD">
							<td class="td">审核状态：</td>
							<td><input type="text" readonly="readonly" value = "${map.checkstate eq 1?'未审核':(map.checkstate eq 2 ?'审核中':'已审核') }" id="checkstate" class="input3"/>
								
							</td>
						</tr>
						<tr class="bbD">
							<td class="td">产品状态：</td>
							<td>
								<select class="input3" name="productstate" disabled="disabled">
									<option value="0" ${map.productstate eq 0? "selected" : "" }>未开通</option>
									<option value="1" ${map.productstate eq 1? "selected" : "" }>开通</option>
								</select>
							</td>
						</tr>
						<tr class="bbD">
							<td class="td">使用状态：</td>
							<td>
								<select class="input3" name="usestate"  disabled="disabled">
									<option value="1" ${map.usestate eq 1 ? "selected" : "" }>未使用</option>
									<option value="2" ${map.usestate eq 2 ? "selected" : "" }>试用</option>
									<option value="3" ${map.usestate eq 3 ? "selected" : "" }>正式使用</option>
								</select>
							</td>	
						</tr>
						<tr class="bbD">
							<td class="td">开通日期：</td>
							<td><input type="text" class="input3" name="spassdate" id="passdate" value="${map.spassdate }" readonly="readonly" />
							</td>
							<td ><span id="writepd"></span></td>
						</tr>

					</table>	
				</div>
				</form>
			</div>

			<!-- 上传广告页面样式end -->
		</div>
	</div>
</body>
</html>